#pragma once
#include <QtGui/QSplitter>

class AutoSplitter :	public QSplitter
{
	Q_OBJECT
public:
	AutoSplitter(QWidget* parent=0);
	virtual ~AutoSplitter(void);

public slots:
	void onResizeArea();

protected:
	virtual QSplitterHandle * createHandle () override;

private slots:
	void refreshLayout();

private:
	Qt::Orientation desktopDirection() const;
};
